#include<iostream>
#define MAX 101

using namespace std;

int main()
{
    int n;
    while(cin >> n && n)
    {
        if(n <= 100)
            cout << "f91(" << n << ") = " << 91 << endl;
        if(n >= 101)
            cout << "f91(" << n << ") = " << n-10 << endl;
    }
	return 0;
}

